package com.aiit.dao;

import com.aiit.pojo.Consultation;
import com.aiit.pojo.Doctor;
import com.aiit.pojo.DoctorbyDept;
import org.apache.ibatis.annotations.*;

import java.util.List;

@Mapper
public interface DoctorDao {
    //@Select("select * from t_doctor where username=#{loginname} and password=#{password}")
    Doctor findDoctor(String loginname,  String password) ;
   // @Insert("insert into t_doctor(loginname,password,name,expert,age,sex,idnumber,dept,address) value(#{loginname},#{password},#{name},#{expert},#{age},#{sex},#{idnumber},#{dept},#{address})")
    int addDoctor(Doctor doctor);
   // @Select("select * from doctor order by id")

    List<DoctorbyDept> findAll();
    //@Select("select * from doctor where idnumber=#{idnumber} or name=#{name}")
    List<DoctorbyDept> findDoctorById(String name, String idnumber);
  // @Update("update t_doctor set ")
    int doctorUpdate(Doctor doctor);
   // @Select("select * from t_doctor where id=#{id}")
    Doctor selectDoctorById(int userid);

}
